<?PHP
	class Order {
		function order($name,$path,$neworder,$order,$dir){
			$print_order = ($order==$neworder && $dir=="DESC")? $neworder."/asc": $neworder;
			if($order==$neworder){
				 $print_dir = ($dir=="ASC")?"<img src=\"images/order.up.gif\" border=\"0\"> ":"<img src=\"images/order.down.gif\" border=\"0\"> ";
			}
			return linkTo($print_dir.$name,$path."/".$print_order);
		}
	}
?>